import { httpData } from '@/utils/types';
import { post, get } from '@/utils/request';
export default {
    //*******************************物料领用**************************************** */

    // 仓储管理-满瓶出库-物料领用出库新增编辑
    outFullMaterialReceiveSave: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/save', data);
    },

    // 生产管理-WMS仓-WMS流水详情-根据物料编号获取库存量
    getNumber: (data?: httpData) => {
        return get('/warehouse/record/getNumber', data);
    },

    // 计划管理-生产计划单下拉-物料领用出库
    orderProductionPlanDropDownList: (data?: httpData) => {
        return get('/order/production/plan/dropDown/list', data);
    },

    // 根据物料id查询对应清单下子表列表物料数据
    materialBillChildrenListMaterialId: (data?: httpData) => {
        return get('/material/bill/children/list/materialId', data);
    },

    //*******************************物料领用出库**************************************** */
    // 仓储管理-满瓶出库-物料领用出库分页
    outFullMaterialReceiveList: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/list', data);
    },
    // 物料领用单详情
    getOutMaterialDeitle: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/detail', data);
    },
    // 物料领用选择接受接收
    receiveBatch: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/receiveBatch', data);
    },
    // 接收全部
    receiveAll: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/receiveAll', data);
    },
    // 删除保存
    detailDelete: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/detail/delete', data);
    },
    // 扫码领用详情接口
    getMaterialReceiveDetail: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/detail', data);
    },

    // 仓储管理-满瓶出库-物料领用出库详情扫码
    outFullMaterialReceiveScan: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/scan', data);
    },

    // 仓储管理-满瓶出库-物料领用出库详情新增编辑
    outFullMaterialReceiveDetailSave: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/detail/save', data);
    },

    // 仓储管理-满瓶出库-物料领用出库-拣货推荐分页
    outFullMaterialReceiveListPicking: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/list/picking', data);
    },

    // 接收
    receive: (data?: httpData) => {
        return post('/warehouse/out/full/material/receive/waitReceive', data);
    },

    //*******************************物料采购退货**************************************** */
    // 仓储管理-满瓶出库-采购退货分页
    orderPurchaseReturnNoticeList: (data?: httpData) => {
        return get('/app/order/purchase/return/notice/list', data);
    },

    // 仓储管理-满瓶出库-采购退货详情扫码
    outFullPurchaseReturnScan: (data?: httpData) => {
        return get('/warehouse/out/full/purchase/return/scan', data);
    },

    // 仓储管理-满瓶出库-采购退货详情扫码
    outFullPurchaseReturnSave: (data?: httpData) => {
        return post('/warehouse/out/full/purchase/return/save', data);
    },

    // 仓储管理-满瓶出库-采购退货新增
    outFullPurchaseReturnAdd: (data?: httpData) => {
        return post('/order/purchase/return/notice/add', data);
    },
    //*******************************物料发货出库**************************************** */

    //******************物料备货点检****************** */
    // 物料销售出库-发货通知单分页
    orderDeliveryNoticeList: (data?: httpData) => {
        return get('/app/order/delivery/notice/list', data);
    },

    // 容器扫码管理-公共扫码
    scanBasic: (data?: httpData) => {
        return get('/app/scan/basic', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-根据发货通知单id成品备货点检详情
    getByOrderDeliveryNoticeId: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/finished/inspect/getByOrderDeliveryNoticeId', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-根据发货通知单id成品备货点检详情
    orderDeliveryNoticeDetail: (data?: httpData) => {
        return get('/order/delivery/notice/detail', data);
    },

    // 计划管理:发货通知单:成品瓶查询
    orderDeliveryNoticeRelateList: (data?: httpData) => {
        return get('/order/delivery/notice/relate/list', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-阀门清洗报检
    finishedInspectWeightInspectionFmqx: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/inspection/fmqx', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-阀门清洗报检
    finishedInspectWeightInspectionFmsf: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/inspection/fmsf', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-钢瓶拍照功能
    finishedInspectInspectionGppz: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/inspection/gppz', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-开始报检
    finishedInspectInspectionStart: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/inspection/start', data);
    },

    //******************复称测压确认****************** */
    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-复称测压确认删除
    finishedInspectWeightManometryDeleteBatch: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/weigh/manometry/deleteBatch', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-复称测压确认详情
    finishedInspectWeightManometryDetail: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/finished/inspect/weigh/manometry/detail', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-复称测压确认新增编辑
    finishedInspectWeightManometrySave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/weigh/manometry/save', data);
    },
    //******************成品备货点检****************** */
    // 仓储管理-满瓶出库-物料发货出库-成品备货点检确认扫码
    finishedInspectConfirmScan: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/finished/inspect/confirm/scan', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-确认详情
    finishedInspectDetail: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/finished/inspect/detail', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-确认分页
    finishedInspectConfirmList: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/finished/inspect/confirm/list', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-复称测压确认新增编辑
    finishedInspectConfirmSave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/confirm/save', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品备货点检-结束点检(复核)新增编辑
    deliveryFinishedInspectFinishSave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/finished/inspect/finish/save', data);
    },
    //*******************************OQC出库检**************************************** */
    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情删除
    deliveryOqcInspectDetailDeleteBatch: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/detail/deleteBatch', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情详情
    deliveryOqcInspectDetailDetail: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/detail/detail', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情新增编辑
    deliveryOqcInspectDetailSave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/detail/save', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检发货拍照
    uploadImageSave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/detail/upload/image', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-根据发货通知单id查OQC出库检详情
    deliveryOqcInspectGetByOrderDeliveryNoticeId: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/getByOrderDeliveryNoticeId', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情分页
    deliveryOqcInspecDetailList: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/detail/list', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情结束检查
    deliveryInspectGetByType: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/getByType', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检详情结束检查
    deliveryInspectEnd: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/end', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检扫码
    deliveryOqcInspecScan: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/scan', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-查全部待判定物料
    getWaitByOrderDeliveryNoticeId: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/getWaitByOrderDeliveryNoticeId', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-OQC出库检新增编辑
    deliveryOqcInspectSave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/oqc/inspect/save', data);
    },

    /**
     *  发货照片详情
     */
    getUploadPhotoDetail: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/oqc/inspect/detail/uploadPhotoDetail', data);
    },

    //*******************************物料销售出库**************************************** */
    // 仓储管理-满瓶出库-物料发货出库-发货通知单
    fullDeliveryListDelivery: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/list/delivery', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-根据发货单号查询成品发货出库详情
    detailByOrderDeliveryNoticeCode: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/detail', data);
    },

    // 仓储管理-满瓶出库-物料发货出库-成品发货出库新增编辑
    warehouseOutFullDeliverySave: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/detail/save', data);
    },
    // 获取售瓶列表
    getSaleslist: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/listCylinderByOrderDeliveryNoticeId', data);
    },
    // 确认售瓶
    saleCylinderAck: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/saleCylinderAck', data);
    },
    // 获取返回客供出库单
    getReturnCustomerBill: (data?: httpData) => {
        return get('/warehouse/out/empty/return/customer/supplier/dropdown', data);
    },
    // 发货出库空瓶数扫码
    emptyCylinderScan: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/detail/emptyCylinderScan', data);
    },
    // 发货出库空瓶扫码提交
    emptyCylinderScanSubmit: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/detail/emptyCylinderAck', data);
    },
    // 气架扫码
    bracketCylinderScan: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/detail/bracketCylinderScan', data);
    },
    // 气架提交
    bracketAckSubmit: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/detail/bracketAck', data);
    },
    bracketDel: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/detail/bracketDel', data);
    },
    // 发货出库空瓶删除
    emptyCylinderDel: (data?: httpData) => {
        return post('/warehouse/out/full/delivery/detail/emptyCylinderDel', data);
    },
    // 物料发货出库返显接口
    getDetailInfo: (data?: httpData) => {
        return get('/warehouse/out/full/delivery/getDetailInfo', data);
    },

    // ************************************************ 其它出库 ************************************************
    // 其它物料出库分页
    getOtherList: (data?: httpData) => {
        return get('/warehouse/out/full/other/list', data);
    },
    // 其它物料新增
    saveOther: (data?: httpData) => {
        return post('/warehouse/out/full/other/save', data);
    },
    // 删除其它物料出库
    deleteBatchOther: (data?: httpData) => {
        return post('/warehouse/out/full/other/deleteBatch', data);
    },
    // 详情信息核对
    getOtherCheckDetail: (data?: httpData) => {
        return get('/warehouse/out/full/other/detail', data);
    },
    // 结束出库
    otherFinish: (data?: httpData) => {
        return post('/warehouse/out/full/other/finish', data);
    },
    // 扫码出库
    otherScan: (data?: httpData) => {
        return get('/warehouse/out/full/other/scan', data);
    },
    // 扫码出库提交
    otherScanSubmit: (data?: httpData) => {
        return post('/warehouse/out/full/other/detailSave', data);
    },
};
